<?php
 
class LogHelper {
    
    public static function log($message, $type = "update") {
        $filePath = sfConfig::get("sf_log_dir") . DIRECTORY_SEPARATOR . $type . ".log";
        $text = PHP_EOL . date("Y-m-d H:i:s") . " - " . $message;
        file_put_contents($filePath, $text, FILE_APPEND);
    }
    
}